<?php
/**
 *@author Connor <caokang@foxmail.com>
 *@todo
 *@link www.zeevin.com
 */
class BaseController extends CController{
	public $layout='//layouts/column1';
	public $uid;
	public $_rec;

	public function init(){
		$this->uid = Yii::app()->user->id;
	}

	public function filters(){
		return array('accessControl');
	}

	public function accessRules(){
		
		return array(
			array('allow','users'=>array('@'),),
			array('deny','users'=>array('*'),),
			);
	}
	
}